package dto

type GoodsInfoDTO struct {
	GoodsId            int      `json:"goodsId" gorm:"type:bigint;primary_key;not null;autoIncrement"`
	GoodsName          string   `json:"goodsName" gorm:"type:varchar(200);not null"`
	GoodsIntro         string   `json:"goodsIntro" gorm:"type:varchar(200);not null"`
	GoodsCoverImg      string   `json:"goodsCoverImg" gorm:"type:varchar(200);not null;default:'/admin/dist/img/no-img.png'"`
	SellingPrice       int      `json:"sellingPrice" gorm:"type:int;not null"`
	Tag                string   `json:"tag" gorm:"type:varchar(20);not null"`
	GoodsCarousel      []string `json:"goodsCarouselList" gorm:"type:varchar(500);not null;default:'/admin/dist/img/no-img.png'"`
	OriginalPrice      int      `json:"original_price" gorm:"type:int;not null"`
	GoodsDetailContent string   `json:"goodsDetailContent" gorm:"type:text;not null"`
}
